<!--
 * // +--------------------------------------------+
 * // | Name: phpenc在线加密平台
 * // +--------------------------------------------+
 * // | Author: Mr.Vance【Vne在线加密平台】<phpenc.sokb.cn>
 * // +--------------------------------------------+
 * // | Contact: QQ：2877741347
 * // +--------------------------------------------+
 * // | Created: PHPStorm
 * // +--------------------------------------------+
 * // | Date: 2024年01月9日
 * // +--------------------------------------------+
-->
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>Vnehto加密平台|php在线加密|phpenc加密-提供稳定免费的phpenc加密</title>
    <meta name="description" content="Vnehto在线加密平台提供多种php加密phpenc加密、sg13加密、sg12加密、在线加密方式和混淆加密,保护您的代码和知识产权">
    <meta name="keyword" content="php加密,phpenc加密,leave加密,enphp加密,phpencode,phpenc,phpenc加密,phpenc在线加密,Swoole Compiler加密,phpenc免费加密,php在线加密,PHP源码加密,在线sg13免费加密,PHP代码加密,PHP文件加密,PHP免费加密,sg13加密,phpen,php在线加密,在线phpenc组件加密">
    <link href="Static/favicon.ico" rel="icon">
    <meta name="author" content="Vance">
    <link rel="stylesheet" href="Static/libs/layui/css/layui.css"/>
    <link rel="stylesheet" href="Static/module/admin.css?v=318"/>
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style>
        body{
            background:linear-gradient(to right,#c9c,#ccf);
            font-family:微软雅黑
        }
        @media only screen and (min-width:700px){
            .content{
                left:50%;margin-left:-25%
            }
        }
        .imgc{
            background-image:url(http://api.nanyinet.com/api/sjbz/api.php?method=pc&lx=fengjing);
            background-size:100% 100%;
            background-repeat:repeat;
            top:0;
            position:fixed;
            left:0;
            width:100%;
            height:100%;
            z-index:-33;
        }
    </style>
</head>
<body layadmin-themealias="dark-blue" style="margin-top: 1em;">
<div class="imgc"></div>
<div id="divLoading">
    <div class="layui-fluid">
        <div class="a layui-anim layui-anim-fadein">
            <div class="layui-row layui-col-space15">
                <div class="text-center">
                    <img src="Static/logo.png">
                </div>
                <div class="layui-fluid" style="padding-bottom: 75px;">
                    <div class="layui-card">
        
                        <div class="layui-card-body">
                            <div class="layui-form-item layui-row">
                                <form class="layui-form">
                                    <div class="layui-card">
                                    <div class="layui-card-body">
                                        <fieldset class="layui-elem-field">
                                            <legend><font color=#FF0000><b>温馨提示</b></font></legend>
                                            <div class="layui-field-box">
                                                选择PHP 版本不宜过多，请确保代码兼容所选版本.
                                                <br>特别提示使用手机用户请用谷歌浏览器进行加密。</font><hr>
                                                <font color=#FF0000><b>关于批量加密：</b></font>
                                                <br>1. 仅支持上传zip后缀的压缩文件，所有目录不能包含中文和其他非法字符。
                                                <br>2. 压缩包大小不能超过2M，一次一个压缩包最多20个文件。
                                                <br>3. 一般10秒-60S出结果，等待完整，点击下载。
                                                <br>Phantomenc是组件加密，需要安装组件才能运行，不适合虚拟主机上运行。
                                                <br>Phantomenc解密组件
                                                <br>Linux OS: <font color=grenn>无需直接下载 直接在您的加密文件中访问按照引导步骤进行安装 一站式安装扩展</font> <font color=red>有问题请联系QQ客服：2877741347</font>
                                                <br>
                                            </div>
                                        </fieldset>
                                    </div>
                                    </div>
                                <input type="hidden" id="space">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">PhPenc加密</label>
                                    <div class="layui-input-block">
                                        <input type="radio" id="edition" name="edition" value="PhPenc" lay-filter="edition" title="PhPenc" checked />
                                        
                                    </div>
                                </div>
                                    
                                    
                                    <div class="layui-form-item">
                                        <label>版权注释</label>
                                        <input type="text" name="comment" class="layui-input" lay-verType="tips" lay-tips="自定义加密头部版权！" placeholder="如：Vne" lay-direction="1">
                                    </div>
                                    <div class="layui-form-item">
                                        <label>选择文件</label>
                                        <div class="layui-upload-drag" id="upload_Encode" style="display:block">
                                            <i class="layui-icon"></i>
                                            <p>点击上传，或将文件拖拽到此处</p>
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label"></label>
                                        <input type="text" name="file" id="file_name" class="layui-input" placeholder="上传的文件名" lay-verType="tips" lay-tips="上传后自动获取！" lay-direction="1" lay-verify="required" required readonly/>
                                    </div>
                                    
                                    <div class="layui-form-item">
                                    <label class="layui-form-label">文件数量</label><div class="layui-input-block">
                                    <d class="layui-form-mid layui-word-aux" lay-tips="上传后自动获取数量！" style="color:#F60 !important;font-family: arial" disabled="" /><space id="count">0</space> 个文件需加密</d>
                                    </div></div>
                                    
                                    <div class="layui-form-item">
                                        <button class="layui-btn layui-btn-normal layui-btn-fluid" lay-submit lay-filter="vassss">确认加密</button>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- js部分 -->
<script type="text/javascript" src="Static/libs/layui/layui.js"></script>
<script type="text/javascript" src="Static/js/common.js?v=318"></script>
<script type="text/javascript" src="Static/js/Tips.js"></script>
<script>
    layui.use(['layer', 'form','upload','formX','notice'], function () {
        var $ = layui.jquery;
        var layer = layui.layer;
        var form = layui.form;
        var upload = layui.upload;
        var notice = layui.notice;

        form.on('submit(vassss)', function (obj) {
            var loadIndex = layer.msg('加密中...', {icon: 16, shade: 0.01, time: false});
            $.post('Ajax.php?act=Encode', obj.field, function (res) {
                layer.close(loadIndex);
                if (res.code == 1) {
                    var down = layer.confirm(res.msg, {
						btn: ['确定', '取消'],
						closeBtn: 0,
						icon: 1,
						title: '加密完成'
					},
					function() {
						Sg_Down(res.data.down,res.data.name);
						layer.close(down);
					},
					function() {
						layer.msg('感谢您的使用！', {
							icon: 6
						});
					});
                } else {
                    class_Tips(res.msg, 'error');
                }
            }, 'json');
            return false;
         
        });
        
        function Sg_Down(space, file) {
        window.location.href = './Ajax.php?act=down&space=' + space + '&file=' + file;
        }

        upload.render({
            elem: '#upload_Encode',
            url: 'Ajax.php?act=Upload',
            dataType: "json",
            accept: 'file',
            exts: 'zip',
            before: function () {
                loadMsg = layer.msg('上传中...', {icon: 16, shade: 0.01, time: false});
            },
            done: function (res) {
                layer.close(loadMsg);
                if (res.code == 1) {
                    $("#count").text(res.data.count);
                    $('#file_name').val(res.data.fileName);
                    class_Tips(res.msg, 'success');
                    
                } else {
                    class_Tips(res.msg, 'error');
                }
            },
            error: function () {
                layer.close(loadMsg);
                layer.msg('服务器繁忙，请稍后再试!', {icon: 5});
            }
        });
    });
</script>
</body>
</html>
